from flask import Flask
from flask import render_template
from flask import request


app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')

@app.route('/login',methods=['POST','GET'])
def login():
    if request.method == 'GET':
        return  index()
    else:
        return render_template('user.html',name=request.form['name'])

@app.route('/register')
def register():
    return render_template('register.html')

@app.error_handlers(404)
def notFound():


if __name__ == '__main__':
    app.run(host='0.0.0.0')
